package utils;

public class URLTools {
	
	/**********************************************************************************************
	 * Functions to get URL String data
	 **********************************************************************************************/
	public static String getURLString(){
		//create server address from preferences.
		/*SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
		String port = sharedPrefs.getString("prefConnPortKey", "");
		String server = sharedPrefs.getString("prefServerKey", "");
		String path = sharedPrefs.getString("prefPathKey", "");
		String serverUser = sharedPrefs.getString("prefServerUser", "");
		String serverPass = sharedPrefs.getString("prefServerPass", "");
		final String strStart = server + ":" + port + path;
		final String str = "customergroup";*/
		String port = "8181";
		String server = "https://www.charteredtech.net";
		String path = "/openBrewRF-1.0/webresources/com.openbrew.openbrewrf.";
		final String strStart = server + ":" + port + path;
		return strStart;
	}
	
	public static String getUSERString(){
		//SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
		//String serverUser = sharedPrefs.getString("prefServerUser", "");
		String serverUser = "openBrewClient";
		return serverUser;
	}
	
	public static String getPASSString(){
		//SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
		//String serverPass = sharedPrefs.getString("prefServerPass", "");
		String serverPass = "0p3nBr3w.547";
		return serverPass;
	}

}
